package com.atguigu.gulimail.Strategy.impl;

import com.atguigu.gulimail.Enum.PayEnum;
import com.atguigu.gulimail.Strategy.PayStrategy;
import org.springframework.stereotype.Component;

/**
 * @author Guo 2022/9/7 9:42:28
 */
@Component("wechatPayStrategy")
public class WechatPayStrategyImpl implements PayStrategy{

    @Override
    public String pay(String amount) throws Exception {
        return String.format(MSG, PayEnum.WECHAT_PAY.getDescription(),amount);
    }

}
